<!--zongfang 付款银行卡方式暂时勿动-->

<div class="cart_paymentzf" id="cart_paymentzf" style="display:<{if $order.payinfo.pay_app_id=='ysepay'}>''<{else}>none<{/if}>">
           <div class="tip_tishi"><i class="deng"></i>为了顺利支付，建议选择<span>快捷支付</span>和<span>IE系列</span>的浏览器，如支付遇到问题，请致电<span>4007-158-168</span></div>
           <!-- <div class="tip_short"><b>【推荐】</b>无需开通网银</div> -->
           <ul class="cart_paymentzf_tab">
                  <!--<li class="current" id="business"><a href="javascript:void(0);">快捷支付</a></li>	-->
                  <li id="preson" class="current"><a href="javascript:void(0);">储蓄卡</a></li>
                  <li id="credit"><a href="javascript:void(0);">信用卡</a></li>
           </ul>
            <div class="crl"></div>
<input autocomplete="off" class="x-input " name="payment[bankaccounttype]" id="bank_type" value="92" type="hidden">
            <div class="crl"></div>
            <div class="cart_payarea crl_xu" id="preson_bank" style="">
              <p class="font999">请选择在线支付的方式：</p>
              <h5 class="fasth5">快捷支付<span class="font999">一步验证，无需网银！</span><i class="recm"></i></h5>
              <ul class="cart_payarealist">
                <li id="92">
				 <input id="r9001000" value="9001000" onclick="confirmBank(this)" name="payment[banktype]" type="radio" checked="checked">
                <label class="limited-coupon" for="r9001000">
                   <span title="中国农业银行" class="icon_bank bank_online"></span> <span class="bank-name">银联在线</span> </label>
                </li>
                <div class="crl"></div>
              </ul>
              <div class="crl"></div>
           <!-- <div class="cart_payarea crl_xu" id="preson_bank" style="display:none;"> -->
                   <h5>网银支付<span class="font999">需开通网银</span></h5>
                   <ul class="cart_payarealist">
					<{foreach from=$bankinfo.person_bank item=item key=key}>
                          <li id="11">
						  <input id="<{$key}>"  type="radio" value="<{$key}>" onclick="confirmBank(this)" name="payment[banktype]">
                          <label  for="<{$key}>" class="limited-coupon">
								<span title="中国农业银行" class="icon_bank bank_<{$item.1}>"></span>
								<span class="bank-name"><{$item.0}></span>
								</label>
                          </li>						  
					<{/foreach}>					
                    </ul>
                    <div class="crl"></div>
					
					<h5 class=" crl_xu">企业银行</h5>
					<ul class="cart_payarealist">
						<{foreach from=$bankinfo.business_bank item=item key=key}>
                          <li id="21">
						  <input id="q<{$key}>" type="radio" value="<{$key}>" onclick="confirmBank(this)" name="payment[banktype]">
                          <label for="q<{$key}>" class="limited-coupon">
								<span title="中国农业银行" class="icon_bank bank_<{$item.1}>"></span>
								<span class="bank-name"><{$item.0}></span>
								</label>
                          </li>
					<{/foreach}>
						  <li id="91">
						  		<input id="r9001001"  type="radio" value="9001000" onclick="confirmBank(this)" name="payment[banktype]">
								<label for="r9001001" class="limited-coupon  current">
								<span title="中国农业银行" class="icon_bank bank_online"></span>
								<span class="bank-name">银联在线</span>
								</label>
                          </li>						  
					</ul>
                    <div class="crl"></div>
            </div>
			<div class="cart_payarea crl_xu" id="credit_bank" style="display:none;">
              <p class="font999">请选择在线支付的方式：</p>
              <h5 class="fasth5">快捷支付<span class="font999">一步验证，无需网银！</span><i class="recm"></i></h5>
              <ul class="cart_payarealist">
                <li id="92">
				<input id="r9001002" value="9001000" onclick="confirmBank(this)" name="payment[banktype]" type="radio">
                <label for="r9001002" class="limited-coupon"> 
                  <span title="中国农业银行" class="icon_bank bank_online"></span> <span class="bank-name">银联在线</span> </label>
                </li>
                <div class="crl"></div>
              </ul>
              <div class="crl"></div>
              <h5>网银支付<span class="font999">需开通网银</span></h5>
                   <ul class="cart_payarealist">
					<{foreach from=$bankinfo.credit_bank item=item key=key}>
                          <li id="12">
						  <input id="e<{$key}>" type="radio" value="<{$key}>" onclick="confirmBank(this)" name="payment[banktype]">
						 <label for="e<{$key}>" class="limited-coupon">
								<span title="中国农业银行" class="icon_bank bank_<{$item.1}>"></span>
								<span class="bank-name"><{$item.0}></span>
								</label>
                          </li>						  
					<{/foreach}>					
                    </ul>
                    <div class="crl"></div>
            </div>

</div><!--cart_paymentzf end-->

<script>
	window.addEvent('domready',function(){
		var tabLi = $$('.cart_paymentzf_tab').getChildren('li');
		$$('.cart_paymentzf_tab').getChildren('li').each(function(item){
			item.addEvent('click',function(el){
				item.removeClass('current');
				$(this).addClass('current');	
				$$('.cart_payarea').each(function(elk){
					elk.style.display = 'none';
				});
				id = $(this).id;
				$(id+"_bank").setStyle('display','');
			});
			
		});
	});

	function confirmBank(obj){
		var objLi = obj.parentNode;
		$('bank_type').value = objLi.id;
	}
</script>